Can‘t connect to MySQL server on ‘localhost‘ (10061)解决方法
m0_75154723:
一运行MySQL -uroot -p就报错咋办
C:\Windows\System32>mysqld --install
The service already exists!
The current server installed: "D:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe" --defaults-file="D:\ProgramData\MySQL\MySQL Server 8.0\my.ini" MySQL
C:\Windows\System32>net start mysql
The MySQL service is starting.
The MySQL service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
C:\Windows\System32>MySQL -uroot -p
Enter password: *********
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
|